import request from '@/utils/request'

export function getDept(query) {
  return request({
    url: 'clinic/dept/list',
    method: 'POST',
    query
  })
}

export function saveOrUpdateDept(data) {
  return request({
    url: '/sys/dept/edit',
    method: 'POST',
    data
  })
}

export function getDeptUsers(data) {
  return request({
    url: 'clinic/user/list',
    method: 'post',
    data
  })
}
